package com.atguigu.gmall.order.service;

import com.atguigu.gmall.model.order.OrderInfo;

import java.util.Map;

public interface OrderService {
    Map<String, Object> trade(String userId);

    Long saveOrder(OrderInfo orderInfo, String userId);

    OrderInfo getOrderById(Long orderId);

    OrderInfo getOrderInfoByOutTradeNo(String outTradeNo);

    void saveOrderById(OrderInfo orderInfo);

    void notifyWareSystemToDeliver(Long orderId);

    void updateOrderStatus(String orderId, String orderStatus, String processStatus);
}
